package com.itheima.dao;

import com.itheima.domain.User;

import java.util.List;

public interface UserMapper {

    public User findByUsernameAndPassword(String username, String password);
    //@Select("select * from t_user")
    public List<User> findAll();

    public Long insert(User user);

    public void saveUserRoleRel(Long id, Long[] roleIds);

    public void delete(Long userId);

    public void deleteUserRoleRel(Long userId);
}
